import { ref } from 'vue'

// 金刚位列表
export const DIAMOND_POSITION_LIST = [
  {
    id: 10000025,
    name: '整租',
    key: 'whole_rent',
    iconPath: 'https://bitejiaoyan.oss-cn-chengdu.aliyuncs.com/bitehouse/web/home/zhengzu.png'
  },
  {
    id: 10000026,
    name: '合租',
    key: 'share_rent',
    iconPath: 'https://bitejiaoyan.oss-cn-chengdu.aliyuncs.com/bitehouse/web/home/hezu.png'
  },
  {
    id: 10000027,
    name: '省心租',
    key: 'worry_free_rental',
    iconPath: 'https://bitejiaoyan.oss-cn-chengdu.aliyuncs.com/bitehouse/web/home/shengxinzu.png'
  },
  {
    id: 10000028,
    name: '公寓',
    key: 'apartment',
    iconPath: 'https://bitejiaoyan.oss-cn-chengdu.aliyuncs.com/bitehouse/web/home/gongyu.png'
  },
  {
    id: 10000029,
    name: '个人房源',
    key: 'personal_house',
    iconPath: 'https://bitejiaoyan.oss-cn-chengdu.aliyuncs.com/bitehouse/web/home/gerenfangyuan.png'
  }
]

// 筛选条件MAP
export const FILTER_MAP = {
  AREA: 'area',
  RENT_PRICE: 'price',
  HOUSE_TYPE: 'houseType',
  SORT: 'sort'
}

// 筛选列表
export const FILTER_LIST = ref([
  {
    id: 1,
    name: '区域',
    isOpen: false,
    key: FILTER_MAP.AREA
  },
  {
    id: 2,
    name: '租金',
    isOpen: false,
    key: FILTER_MAP.RENT_PRICE
  },
  {
    id: 3,
    name: '户型',
    isOpen: false,
    key: FILTER_MAP.HOUSE_TYPE
  },
  {
    id: 4,
    name: '排序',
    isOpen: false,
    key: FILTER_MAP.SORT
  }
])

// 排序筛选下拉列表
export const SORT_PULL_LIST = ref([
  {
    name: '距离优先',
    key: 'distance',
    isSelected: true
  },
  {
    name: '价格从低到高',
    key: 'price_asc',
    isSelected: false
  },
  {
    name: '价格从高到低',
    key: 'price_desc',
    isSelected: false
  }
])

// 图片地址前缀
export const OSS_BASE_URL = 'https://bitejiaoyan.oss-cn-chengdu.aliyuncs.com/'
// 图片资源前缀
export const OSS_IMAGE_BASE_URL = OSS_BASE_URL + 'bithouse/web/'
